]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
boxpointer: Don't trigger a relayout when updating arrow side
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 13 Jun 2019 17:40:47 +0000 (19:40 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 17 Jun 2019 12:22:19 +0000 (14:22 +0200)
Changing the arrow side might need to reposition the boxpointer, however
if this happens during allocation, we don't need to trigger a new relayout since
we'd set the new allocation once _updateFlip's _reposition call is terminated,
otherwise if the position has changed, changing the boxpointer coordinates
will trigger a relayout anyways.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/576

js/ui/boxpointer.js

index 9939a5abfbbf0ccdd204d7bd16f14289d78c1ed9..2f4975a29e2990e93cebe00bd6fb326ab5b543ab 100644 (file)
@@ -671,10 +671,6 @@ var BoxPointer = GObject.registerClass({
         if (this._arrowSide != arrowSide) {
             this._arrowSide = arrowSide;
             this._reposition(allocationBox);
-            Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
-                this.queue_relayout();
-                return false;
-            });
 
             this.emit('arrow-side-changed');
         }